import service from "@/untils/request";

export function login({ username, password }) {
  return service({
    url: "/user/login",
    method: "post",
    data: {
      username,
      password
    }
  });
}

export function list() {
  return service({
    url: "/user/list",
    method: "get"
  });
}

export function getUserRoutes() {
  return service({
    url: "/user/routes",
    method: "get"
  });
}